package com.mind.login.msg;
import com.mind.common.MessageCode;
import com.mind.core.net.msg.BaseMessage;
/**用户登录协议
*自动生成类
*/
public class SC_TestMsg extends BaseMessage{
	/**用户金币*/
	private Integer gold;
	private float ttt1;
	private String name;
	public SC_TestMsg(){}
	public SC_TestMsg(Integer gold){
	  this.gold=gold;
	}
	/**获取用户金币*/
	public Integer getGold(){
		return this.gold;
	}
	public boolean readImpl() {
		this.gold=readInteger();
		this.ttt1=readFloat();
		this.name=readString();
		return true;
	}
	
	public String getMessageName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public float getTtt1() {
		return ttt1;
	}
	public void setTtt1(float ttt1) {
		this.ttt1 = ttt1;
	}
	public void setGold(Integer gold) {
		this.gold = gold;
	}
	public boolean writeImpl() {
		writeInteger(this.gold);
		return true;
	}
	public short getMessageType() {
		return (short)1001;
	}
	@Override
	public String toString() {
		return "SC_TestMsg [gold=" + gold + ", ttt1=" + ttt1 + ", name=" + name
				+ "]";
	}
	
}
